package com.xli.mis.tablecategory.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xli.mis.tablecategory.entity.TableCategory;
import jakarta.validation.constraints.NotNull;

import java.util.List;

public interface ITableCategoryService extends IService<TableCategory> {

    boolean insert(TableCategory tableCategory);

    boolean delete(Long id);

    boolean update(TableCategory dataSource);

    TableCategory find(Long id);

    long findCount(QueryWrapper<TableCategory> qw);

    List<TableCategory> findList(QueryWrapper<TableCategory> qw);

    Page<TableCategory> findList(QueryWrapper<TableCategory> qw, long current, long size);

    TableCategory findByName(@NotNull String name);
}
